package com.leetcode.bit;

/**
 * @author Dennis Li
 * @date 2020/7/21 14:46
 */
public class HammingDistance_461 {

    public int hammingDistance(int x, int y) {
        return Integer.bitCount(x ^ y);
    }

}
